<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="zxc">周星驰</div>
    <div id="zzl">邹兆龙</div>
    <p>
       我是景天
       <strong>景天的景景天的天</strong>

    </p>

    <script>
        /* 
            innerHTML:对H5的代码进行渲染.
            innerText:只识别文字.

        */

        let p = document.querySelector('p');
        console.dir(p);

        //读
        console.log(p.innerHTML);
        console.log(p.innerText);
        //写
        let zxc = document.querySelector('#zxc');
        let zzl = document.querySelector('#zzl');
        
        
        zxc.innerHTML = '<strong>景天的景景天的天</strong>';
        zzl.innerText = '<strong>景天的景景天的天</strong>';
    </script>
</body>
</html>